import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
import { Router, NavigationStart, NavigationEnd, NavigationCancel, NavigationError, RoutesRecognized } from '@angular/router';
import { CanDraw } from '../../common/draw/draw.component';

@Component({
  selector: 'es-table-column',
  templateUrl: './column.component.html',
  styleUrls: ['./table.component.css', '../../app.component.css']
})
export class TableColumnComponent implements OnInit {
  ngOnInit(): void {
    if (this.header.field == this.field) {
      this.show = true;
    }
  }
  @Input() header: any;
  @Input() data: any;
  @Input() field: string;
  show: boolean;
  constructor(private router: Router) {

  }

}
